//
//  VOHFirtView.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/12.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHFirtView.h"



@implementation VOHFirtView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setUpView];
    }
    return self;
}



-(void)setUpView{
  
  
    self.backgroundColor = VOHColor(randomNumber, randomNumber, randomNumber, randomNumber);
    //首页按钮
    VOHButton *button = [VOHButton creatButtonWithFrame:CGRectMake(ScreenWidth * 0.5, ScreenHeight * 0.5, 50, 50) Title:@"首页" HighLightImageName:nil ImageName:nil];
    
    self.mainButton = button;
   
    [self addSubview:button];
    
    //音乐按钮
    self.MusicButton = [VOHButton creatButtonWithFrame:CGRectMake(300, 100, 60, 40) Title:@"Music" HighLightImageName:nil ImageName:nil];
    [self addSubview:self.MusicButton];
    //电台按钮
    self.RadioButton = [VOHButton creatButtonWithFrame:CGRectMake(20, 100, 60, 40) Title:@"Radio" HighLightImageName:nil ImageName:nil];
    [self addSubview:self.RadioButton];

    //MV按钮
    self.MVButton = [VOHButton creatButtonWithFrame:CGRectMake(100, 100, 60, 40) Title:@"MV" HighLightImageName:nil ImageName:nil];
    [self addSubview:self.MVButton];

    //用户按钮
    self.UserButton = [VOHButton creatButtonWithFrame:CGRectMake(200, 100, 60, 40) Title:@"User" HighLightImageName:nil ImageName:nil];
    [self addSubview:self.UserButton];

    
    
}

@end
